package com.ewo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Emp {

    private int id;
    private String name;
    private String username;
    private String password;
    private String job_number;
    private String phone;
    private String wechat_account;
    private String email;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birth_date;
    private int sex;
    private String native_place;
    private String education;
    private String major;
    private String school_tag;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate graduation_time;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime last_logon;
    private String individual_resume;
    private int status;
    private int isdelete;
}
